package com.school.dao;

import com.school.dto.user.LoginDTO;
import com.school.dto.user.UserArrayDTO;
import com.school.model.User;
import com.school.vo.UserInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int count(UserArrayDTO dto);

    List<UserInfoVO> selectArrayByParam(UserArrayDTO dto);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int updateByDep(User record);

    User login(LoginDTO dto);

    User selectByUserName(@Param("userName") String userName);

    int updateDepartmentNameByDepId(@Param("dId") Integer dId,@Param("dName") String dName);
}